import {get,post}from "../utils/request";

// 获取订单列表数据
export const loadOrderListAPI= (page,per)=>get("/api/v1/orders",{
    page,per
});

//获取订单详情
export const loadOrderDetailAPI = (id)=>get("/api/v1/orders/"+id);

//提交订单
export const submitOrderAPI = (products,receiver,address)=>post ("/api/v1/orders",{
    products,receiver,address
});